package com.test.p20mediator.example01;

public class Development implements  Department {

    private Mediator mediator ; //持有中介者（总经理）的引用

    public Development(Mediator mediator) {
        super();
        this.mediator = mediator;
        mediator.register("developemnt",this);
    }

    @Override
    public void selfAction() {
        System.out.println("develop");
    }

    @Override
    public void outAction() {
        System.out.println("汇报工作，需要钱");

    }
}
